package com.ServiceImpl.Admin;

import com.Mapper.Admin.CarInfoMapper;
import com.Model.Admin.CarInfo;

import com.Service.Admin.CarInfoService;
import com.ServiceImpl.BaseSevice;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CarInfoServiceImpl extends BaseSevice<CarInfo> implements CarInfoService {
    @Override
    public PageInfo<CarInfo> getCarInfoByQuery(CarInfo carInfo) {


        List<CarInfo> lst = ((CarInfoMapper) mapper).getCarInfo(carInfo.getCarcode(), carInfo.getSitecode());

        PageInfo<CarInfo> info = new PageInfo<>(lst);
        return info;
    }
}
